
TARGET = Black Maze

INCLUDES = -I ..\MinGW\includes -L ..\MinGW\lib
CXX = g++
CXXFLAGS = -Wall -g $(INCLUDES)  -DPC

SRC =	 main.cpp \
	player.cpp \
	creature.cpp \
	libraries/BM_config.cpp  \
	libraries/BM_init.cpp \
	libraries/BM_light.cpp \
	libraries/BM_camera.cpp \
	libraries/MD2/BM_md2.cpp \
	libraries/OBJ/BM_obj.cpp \
	libraries/OBJ/SmVR_CObjFromFile.cpp \
	libraries/OBJ/SmVR_CPoint.cpp \
	libraries/OBJ/SmVR_Matrix.cpp \
	libraries/TGA/tga.cpp \
	libraries/BM_model.cpp \
	libraries/BM_level.cpp  \
	libraries/BM_menu.cpp \
	libraries/BM_menu_object.cpp \
	libraries/BM_sound.cpp \
	libraries/BM_anitex.cpp \
	libraries/BM_time.cpp \
	libraries/BM_input.cpp
	
#main_models.cpp  main.cpp  bak_main.cpp
OBJ = $(addsuffix .o, $(basename $(SRC))) 

LIBS =  -lmingw32 -lSDLmain -lSDL -lSDL_image -lSDL_mixer -lSDL_ttf -lopengl32 -lglu32 -lglut32 -lglaux -mwindows
#LIBS = -lmingw32 -mwindows -lSDLmain -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer -lSDL_gfx -lws2_32

RM = rm -f
.PHONY: all all-before all-after clean clean-custom

BlackMaze: $(OBJ)
	$(CXX) $(CXXFLAGS) -o $@ $(OBJ) $(LIBS)

clean: clean-custom
	${RM} $(OBJ)

cleanall: clean-custom
	${RM} $(OBJ) BlackMaze.exe

